wayland: Only set wayland selection for GDK_SELECTION_CLIPBOARD
authorKristian Høgsberg <krh@bitplanet.net>
Sat, 24 Aug 2013 06:10:22 +0000 (23:10 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Sat, 24 Aug 2013 06:15:54 +0000 (23:15 -0700)
Wayland only has one selection, which corresponds to GDK_SELECTION_CLIPBOARD.

gtk/gtkclipboard-wayland.c

index d3eb9069bf585474538048dd8da6ef93f59e8f44..8f6012e1931ab933330f2bff11bc04cd13a7d9ad 100644 (file)
@@ -148,6 +148,9 @@ gtk_clipboard_wayland_set_contents (GtkClipboard         *gtkclipboard,
   gchar **mimetypes;
   SetContentClosure *closure, *last_closure;
 
+  if (gtkclipboard->selection != GDK_SELECTION_CLIPBOARD)
+    return;
+
   last_closure = clipboard->last_closure;
   if (!last_closure ||
       (!last_closure->have_owner && have_owner) ||